package com.example.flip3d;

import android.view.animation.Animation;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.RelativeLayout;

public final class DisplayNextView implements Animation.AnimationListener {
	private boolean mCurrentView;
	RelativeLayout image1;
	RelativeLayout image2;

	public DisplayNextView(boolean currentView, RelativeLayout image1, RelativeLayout image2) {
		mCurrentView = currentView;
		this.image1 = image1;
		this.image2 = image2;
	}

	public void onAnimationStart(Animation animation) {
	}

	public void onAnimationEnd(Animation animation) {
		image1.post(new SwapViews(mCurrentView, image1, image2));
	}

	public void onAnimationRepeat(Animation animation) {
	}
}